package pro.survey.analyzer.data;
// Generated 2013-05-11 13:57:43 by Hibernate Tools 3.2.1.GA


import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Imports generated by hbm2java
 */
@Entity
@Table(name="imports")
public class Imports  implements java.io.Serializable {


     private Integer id;
     private Date created;
     private Set<Lectors> lectorses = new HashSet<Lectors>(0);
     private Set<Questions> questionses = new HashSet<Questions>(0);
     private Set<Answers> answerses = new HashSet<Answers>(0);

    public Imports() {
        this.created = new Date();
    }

	
    public Imports(Date created) {
        this.created = created;
    }
    public Imports(Date created, Set<Lectors> lectorses, Set<Questions> questionses, Set<Answers> answerses) {
       this.created = created;
       this.lectorses = lectorses;
       this.questionses = questionses;
       this.answerses = answerses;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="id", unique=true, nullable=false)
    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="created", nullable=false, length=19)
    public Date getCreated() {
        return this.created;
    }
    
    public void setCreated(Date created) {
        this.created = created;
    }
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="imports")
    public Set<Lectors> getLectorses() {
        return this.lectorses;
    }
    
    public void setLectorses(Set<Lectors> lectorses) {
        this.lectorses = lectorses;
    }
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="imports")
    public Set<Questions> getQuestionses() {
        return this.questionses;
    }
    
    public void setQuestionses(Set<Questions> questionses) {
        this.questionses = questionses;
    }
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="imports")
    public Set<Answers> getAnswerses() {
        return this.answerses;
    }
    
    public void setAnswerses(Set<Answers> answerses) {
        this.answerses = answerses;
    }




}


